﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharedLib.DataStructure
{
    /// <summary>
    /// Query condition to be used in GetItem method of IDataProvider
    /// </summary>
    /// <typeparam name="T">Item type</typeparam>
    public interface IQueryCondition<T>
    {
        /// <summary>
        /// Get the item matching the condition
        /// </summary>
        /// <param name="itemList"></param>
        /// <returns></returns>
        T GetMatchedItem(List<T> itemList);
    }
}
